package com.autumn.util.convert;

/**
 * 
 * @author 杨昌国
 *
 *         2017-10-10 11:30:24
 */
public class StringConvert extends AbstractDataConvert {

	@Override
	public final boolean isBaseType() {
		return true;
	}

	@Override
	public final boolean isNumberType() {
		return false;
	}

	@Override
	public Object getDefaultValue() {
		return null;
	}

	@Override
	public Class<?> getType() {
		return String.class;
	}

	@Override
	protected Object convert(Class<?> targetClass, Class<?> sourceClass, Object source) {
		return source.toString();
	}

}
